<%-- Customized version of weceemadmin.gsp layout. --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title><g:layoutTitle default="Weceem"/></title>

    <nav:resources/>
    <g:javascript library="jquery" plugin="jquery"/>
    <plugin:isAvailable name="resources">
        <r:layoutResources/>
    </plugin:isAvailable>

    <blueprint:resources plugins="buttons"/>

    <jqui:resources themeCss="${g.resource(dir:'_weceem/jquery-ui/themes/cupertino', file:'jquery-ui-1.8.4.custom.css', plugin:'weceem')}"/>

    <link href="${g.resource(plugin:'weceem', dir:'_weceem/js/fg-menu', file:'fg.menu.css')}" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${g.resource(plugin:'weceem', dir: '_weceem/js/fg-menu', file:'fg.menu.js')}"></script>

    <link rel="stylesheet" href="${g.resource(plugin:'weceem', dir: '_weceem/css',file:'admin.css')}"/>
    <link rel="stylesheet" href="${g.resource(plugin:'weceem', dir: '_weceem/css',file:'admin-theme.css')}"/>
    <link rel="stylesheet" href="${g.resource(plugin:'weceem', dir: '_weceem/css',file:'weceem.css')}"/>

    <g:layoutHead/>

  </head>

  <body onload="${pageProperty(name:'body.onload')}" class="${pageProperty(name:'body.class')}">

  <div class="container">
    <g:if test="${!params.externalCall}">

        <%-- begin header --%>
        <div class="container">
            <div class="span-14"></div>

            <div id="iconbar" class="span-10 last prepend-top" style="width: 100%; text-align: right">
                <span title="Current User">
                  <g:message code="admin.user.current" args="${[wcm.loggedInUserName().encodeAsHTML(), wcm.loggedInUserEmail().encodeAsHTML()]}"/>
                </span>
                | <a href="/">Back to terasaur</a> |
                <a href="http://www.weceem.org/" target="_blank"><g:message code="admin.help.label"/></a> |
                <g:link controller="logout"><g:message code="admin.user.logout"/></g:link>
            </div>

            <div id="navigation" class="span-24 last">
                <nav:render group="weceem" actionMatch="true"/>
            </div>

            <g:if test="${flash.message}">
              <div class="message span-22 prepend-1 append-1 prepent-top append-bottom last ui-state-highlight ui-corner-all"><g:message code="${flash.message}" encodeAs="HTML"/></div>
            </g:if>
            <g:if test="${flash.error}">
              <div class="message span-22 prepend-1 append-1 prepent-top append-bottom last ui-state-error ui-corner-all">${flash.error}</div>
            </g:if>

        </div>
        <%-- end header --%>
    </g:if>

    <g:layoutBody/>

    <g:if test="${!params.externalCall}">
        <div class="clear prepend-top span-24 last">
          <div id="footerMessage" class="footer">
          </div>
        </div>
    </g:if>
  </div>

      <plugin:isAvailable name="resources">
          <r:layoutResources/>
      </plugin:isAvailable>

  </body>
</html>
